
readcol,'./emaf_paper/exam_grs_mismatch.txt',cnum,format='a',count=n
restore,'./emaf_paper/bgps_emaf.sav',/ver

print,'N: ',n

FOR i=0,n-1 DO BEGIN
   spawn,'gv ./local/output/mir_examine'+cnum[i]+'.eps &'
   spawn,'gv ./local/output/morph'+cnum[i]+'.eps &'
   
   j = where(emaf.cnum EQ fix(cnum[i]))
   print,emaf[j].cnum,emaf[j].c,emaf[j].i_mir
   
   
   res = get_kbrd()
ENDFOR


END
